package com.netflexitysolutions.amazonws.ec2;

import java.util.HashSet;
import java.util.Set;

public class IPPermission {
	
	private IPProtocol protocol;
	
	private int fromPort;
	
	private int toPort;
	
	private Set<String> ipRanges = new HashSet<String>();
	
	private Set<UserIdGroupPair> userIdGroupPairs = new HashSet<UserIdGroupPair>();

	/**
	 * @return the fromPort
	 */
	public int getFromPort() {
		return fromPort;
	}

	/**
	 * @param fromPort the fromPort to set
	 */
	public void setFromPort(int fromPort) {
		this.fromPort = fromPort;
	}

	/**
	 * @return the toPort
	 */
	public int getToPort() {
		return toPort;
	}

	/**
	 * @param toPort the toPort to set
	 */
	public void setToPort(int toPort) {
		this.toPort = toPort;
	}

	/**
	 * @return the ipRanges
	 */
	public Set<String> getIpRanges() {
		return ipRanges;
	}

	/**
	 * @param ipRanges the ipRanges to set
	 */
	public void setIpRanges(Set<String> ipRanges) {
		this.ipRanges = ipRanges;
	}

	/**
	 * @return the userIdGroupPairs
	 */
	public Set<UserIdGroupPair> getUserIdGroupPairs() {
		return userIdGroupPairs;
	}

	/**
	 * @param userIdGroupPairs the userIdGroupPairs to set
	 */
	public void setUserIdGroupPairs(Set<UserIdGroupPair> userIdGroupPairs) {
		this.userIdGroupPairs = userIdGroupPairs;
	}

	/**
	 * @return the protocol
	 */
	public IPProtocol getProtocol() {
		return protocol;
	}

	/**
	 * @param protocol the protocol to set
	 */
	public void setProtocol(IPProtocol protocol) {
		this.protocol = protocol;
	}

}
